-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add MultiMarkdown footnotes extension #141
base: master
Are you sure you want to change the base?
Conversation
Nice! I've run this again a dozen markdown files with footnotes. Haven't seen any errors yet. |
Thanks for doing that brief! Glad to know that it's working for you. |
I impatiently made a fork of Redcarpet to play with these features, as a client of mine needs them this week. (Lucky timing for me!) So far so good. The HTML markup gave me a bit of trouble, though; jQuery doesn't seem to like namespaced IDs ( Will post here if I see any other issues, but it looks great, thanks @bdolman ! |
Hmm, one thing I just noticed is that it fails to recognize multiple footnotes if the line delimiter is
I'll just preprocess for now, but thought I'd mention it, as |
@adamflorin Good catch! Give the latest a try. |
@adamflorin I'm also not really a huge fan of the |
+1 i'd like have this extension |
👍 yeah, we'd like the extension to be merged! @vmg what do you think? Please consider adding it. |
+1 |
Thanks for this PR, looks clean enough. Unfortunately, Sundown is currently frozen as we're working with the Reddit, StackOverflow and Meteor developers to design a formal Markdown standard and parser that will supersede Sundown in all these websites (and in GitHub, of course). Our goal is to deprecate Sundown altogether before the end of the year. We're evaluating the possibility of adding a footnote extension to the new standard, but we're not quite there yet. Sorry for the fuss. Stay tuned. |
estic preocupat. 😿 |
The only reason why we're deprecating Sundown is because we're 100% sure that we can come up with something faster, safer, and what's more important, more consistent than what we have now. I can assure you that the new parser will be an improvement in every sense -- and if it's not, you can always fork Sundown and continue developing it. Such is the magic of open source. :) Just give me a couple weeks to get this thing going. I promise it'll be worth it. http://www.youtube.com/watch?v=FSJFTa2jvhk |
Is there a place where we can follow the progress of this project, e.g. a mailinglist? |
@vmg Oh, lots of relaxed now. |
Thanks for the update @vmg, I'm thrilled that you are working with those developers to nail down a markdown standard and an even better markdown renderer. In the meantime I just want to let everyone know that this footnotes extension is being used in at least two popular apps (and probably more) without any known issues, so please feel confident in using it until we get the new shiny. |
@bdolman If you're interested, I have just released Hoedown 1.0.0, a revived fork of Sundown. It includes this pull request: |
@devinus Awesome, thanks for picking it back up. I'll definitely be checking out hoedown. I like the name too :) |
Simple install target
The footnote syntax and output basically follows what's outlined here: http://michelf.ca/projects/php-markdown/extra/#footnotes
The parsing of the footnote definition is very similar to a list item, per the direction in the footnotes reference above.
New extension flag called MKDEXT_FOOTNOTES.
Three new rendering callbacks:
The rest should be pretty self explanatory. I tried to follow the conventions in the current library. My buffer usage deserves some scrutiny to make sure I'm using the proper initial sizes.
I've done some basic testing, but nothing extensive. Would love to get some other people trying it and looking at it to see if I've missed something.